(function(){
	var dianpuguanli=$("#dianpuguanli"),
		tixianqian=$(".tixian_qian"),
		money=$("#money"),//获取金钱
		btn_caiwu=$(".caiwu"),//财务信息按钮
		jine=$(".jine"),//金额提示信息
		caiwuxinxi=$("#caiwuxinxi");
	dianpuguanli.on("click",function(){
		caiwuxinxi.css("display","block");
		tixianqian.css("opacity",".2");
		jine.text("提现请设置财务信息");
		tixianqian.attr("disabled","disabled");
		btn_caiwu.css("display","block");
	})
	var cur_money=parseInt(money.text());
	if(cur_money<100){
		tixianqian.css({
//			"opacity":".2",
			"color":"#EB413D",
			"border":"1px solid #e7e7e7",
			"background":"#f8f8f8"
			});
		tixianqian.attr("readonly","readonly");
		tixianqian.on("mousemove",function(){
			caiwuxinxi.css("display","block");
			btn_caiwu.css("display","none");
			jine.text("金额>=100元时，可提现");
			jine.css({
				"color":"#EB413D",
				});
			tixianqian.css("background","#e7e7e7");
		})
		tixianqian.on("mouseleave",function(){
			caiwuxinxi.css("display","none");
			tixianqian.css("background","#f8f8f8");
		})
	}else{
		tixianqian.css({
			"color":"#ffffff",
			"border":"1px solid #e7e7e7",
			"background":"#eb413D"
			});
		tixianqian.on("mousemove",function(){
			tixianqian.css("opacity",".2");
		})
		tixianqian.on("mouseleave",function(){
			tixianqian.css("opacity","1");
		})	
	}
		tixianqian.on("click",function(){
			location.href="../my_money/ti_xsq.html"; 
		})

	$(".jiantou").each(function () {
        $(this).on("mouseenter",function () {
            $(this).parent().find(".dialog").css({
                "display":"block",
                "z-index":"99",
                "left":"-9px",
                "bottom":"50px",
                "text-align":"center"
            })
            $(this).css("background","#efefef");
        })
        $(this).on("mouseleave",function () {
            $(this).parent().find(".dialog").css({
                "display":"none",
                "z-index":"99",
                "left":"-9px",
                "bottom":"50px",
                "text-align":"center"
            })
            $(this).css("background","none");
        })
    })





})();
